package com.bcmusic.distri.service;

import com.bcmusic.distri.pojo.DistributeDetail;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:admin
 * @Description:DistributeDetail业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface DistributeDetailService {

    /***
     * DistributeDetail多条件分页查询
     * @param distributeDetail
     * @param page
     * @param size
     * @return
     */
    PageInfo<DistributeDetail> findPage(DistributeDetail distributeDetail, int page, int size);

    /***
     * DistributeDetail分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<DistributeDetail> findPage(int page, int size);

    /***
     * DistributeDetail多条件搜索方法
     * @param distributeDetail
     * @return
     */
    List<DistributeDetail> findList(DistributeDetail distributeDetail);

    /***
     * 删除DistributeDetail
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改DistributeDetail数据
     * @param distributeDetail
     */
    void update(DistributeDetail distributeDetail);

    /***
     * 新增DistributeDetail
     * @param distributeDetail
     */
    void add(DistributeDetail distributeDetail);

    /**
     * 根据ID查询DistributeDetail
     * @param id
     * @return
     */
     DistributeDetail findById(Integer id);

    /***
     * 查询所有DistributeDetail
     * @return
     */
    List<DistributeDetail> findAll();
}
